Share by Using the Facebook SDK for JavaScript Use the following code snippet to open the Share dialog. FB. ui({ method: 'share', href: 'https://developers.facebook.com/docs/', }, function(response){}); Try it yourself!
The Share button lets people add a personalized message to links before sharing on their timeline, in groups, or to their friends via a Facebook Message. If ...
All you need are the following lines: <a href=https://www.facebook.com/sharer/sharer.php?u=example.org target=_blank> Share on Facebook </a>